<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/include/taglib.jsp"%>
<%@ include file="/jsp/include/headform.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String loginName = (String)session.getAttribute("loginName");
%>

<html>
<head>
    <base href="<%=basePath%>">

    <title>查看长编</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
	<script src="${ctxStatic}/ckeditor/ckeditor.js"></script>
    <script type="text/javascript">
    var editor = null;
     var bmeditor = null;
		$(function(){
			 CKEDITOR.replace( 'editor1',{
				height: 400
			});
			
			var indicatorId = '${summary.ccc}';  
			
		    if(${summary.ccc!=null}){
		    	  CKEDITOR.replace( 'ccc',{
					height: 400
				});
		    }
		 
			
			
			var loginName = '<%=loginName%>';
			var processInstanceId = $("[name=processInstanceId]").val();
			
			$.ajax({
				async : false,
			    url : "${ctx}/flow/getStatus",
				type : 'post',
				data: "processInstanceId="+processInstanceId,
				success: function(data, status, xhr) {
					if (status == "success" && data.result == "success") {
						var statu = data.statu;
						var taskId = data.taskId;
						var dealUser = data.loginName;
						
						//当前登录用户为处理人，显示审核相关信息
						if(loginName != dealUser){
							$('#editor1').attr('disabled',true);
							$('#editor2').attr('disabled',true);
							return false;
						}
						
						$("[name=createUserId]").val(dealUser);
						
						if(statu == "单位/部门领导审核" || statu == "修志办领导初审" || statu == "修志办领导复审"){
							$('#verifyBtn').click(function(){
								showView();
					        });
						
							$('.ywbl').click(function(){
								showView();
					        });
						}
						
						$('.cancelButton').click(function(){
				            $(".fjcount").text("0");
				            $('div[name$=Window]').hide();
				            $("#bt").css("display", "none");
				        });
						
						$("[name=taskId]").val(taskId);
						alert(statu);
						if(statu == "单位/部门领导审核"){
							$("#titleChange").html("部门领导审核");
							$("#choose1Html").html("审核通过，提交修志办初审");
							$("#comment").val("同意！");
							$("#choose2Html").html("返回修改");
							$("#step").val("deptLeader");
							
							//getLeader("2");待定
							getLeaderNew("2");//仅获取修志办初审特定领导
							
							$(".ywbl").parent().removeClass("disable");
							$("#verifyBtn").show();
						}
						if(statu == "修志办领导初审"){
							$("#titleChange").html("修志办经办人");
							$("#choose1Html").html("审核通过");
							$("#comment").val("同意！");
							$("#choose2Html").html("返回修改");
							$("#step").val("chronView");
							
							getLeader("3");
							
							$(".ywbl").parent().removeClass("disable");
							$("#verifyBtn").show();
						}
						if(statu == "修志办领导复审"){
							$("#titleChange").html("修志办领导复审");
							$("#choose1Html").html("审核通过");
							$("#comment").val("同意！");
							$("#choose2Html").html("返回修改");
							$("#step").val("endFlow");
							
							$("#nextUserMsg").hide();
							
							$(".ywbl").parent().removeClass("disable");
							$("#verifyBtn").show();
						}
						
						$("[name=choose]").change(function(){
				        	var chooseVal = $("input[name='choose']:checked").val();
				        	var step = $("#step").val();
				        	if(chooseVal == "1"){
				        		$("[name=flag]").val("1");
				        		$("#comment").val("同意！");
				        		
				        		if(step == "deptLeader" || step == "chronView"){
				        			$("#nextUserMsg").show();
				        		}
				        	}
				        	if(chooseVal == "0"){
				        		$("[name=flag]").val("0");
				        		$("#comment").val("不同意，请重新修改！");
				        		
				        		
				        		if(step == "deptLeader" || step == "chronView"){
				        			$("#nextUserMsg").hide();
				        		}
				        	}
				        });
				        
				        $(".commitFlow").click(function(){
				        	var step = $("#step").val();
				        	if((step == "deptLeader" || step == "chronView") && $("input[name='choose']:checked").val() == "1"){
					        	if($("#nextUserId").val() == "" || $("#nextUserId").val() == null){
									alert("审核领导不能为空");
									return false;
								}
				        	}
				        	
				        	if(confirm("是否提交审核")){
				        		$(".commitFlow").attr("disabled","disabled");
				        		
				        		editor.updateElement();
				        		bmeditor.updateElement();
								$('#form').ajaxSubmit({
									type: 'post',
									url: '${ctx}/summary',
									success: function(result) { // data 保存提交后返回的数据，一般为 json 数据
										if(result.info.success){
								            $.ajax({
								                url : "${ctx}/flow/flowSummaryComplete",
								                type:"POST",
								                data:$('#recordForm').serialize(),
								                success: function(data, status, xhr){
								                	if(status == "success" && data == "success"){
								                		//绑定意见附件
								                		var _attachIds = $("table#leaderupload tbody tr"), attachIds = "";
								   	                    for (var i = 0; i < _attachIds.length; i++) {
								   	                   		attachIds += $(_attachIds[i]).attr("name") + ",";
								   	                    }
								   	                    attachIds = attachIds.substring(0, attachIds.length - 1);
								                		bindAttach('summaryFlow',$("[name=taskId]").val(),attachIds);
								                		
								                		alert("提交成功！");
										                $('div[name$=Window]').hide();
										                $("#bt").css("display", "none");
										                $(".commitFlow").removeAttr("disabled");
										                window.close();
													}else{
														alert("对不起！你的请求出现异常，请联系服务人员！");
													}
								                },
								                error:function(){
								                	alert("对不起！你的请求出现异常，请联系服务人员！");
								                }
								            });
										}else{
								           	alert("对不起！内容更新出现异常，请联系服务人员！");				
										}
						            },
						            error: function(){
							           	alert("对不起！你的请求出现异常，请联系服务人员！");
						            }
								});				        		
				        		
				        	}
				        });
				        
				        $("#myuploadify").uploadify({
		                    'auto': false,
		                    'method': "post",
		                    'height': 20,
		                    'width': 100,
		                    'swf': '${ctxStatic}/uploadify/uploadify.swf',
		                    'uploader': '${ctx}/api/attach/upload?groupName=chronFlow' ,
		                    'fileTypeDesc': '格式:txt,xls，xlsx,doc,docx,rar,zip,jpg,png,pdf',		//描述
		                    'fileTypeExts': '*.txt;*.xls;*.xlsx;*.doc;*.docx;*.rar;*.zip;*.jpg;*.png;*.pdf',			//文件类型
		                    'fileSizeLimit': '30000KB',			//文件大小
		                    'buttonText': '选择文件',			//按钮名称
		                    'fileObjName': 'uploadify',
		                    'multi': true,
		                    'successTimeout': 5,
		                    'requeueErrors': false,
		                    'removeTimeout': 1,
		                    'removeCompleted': true,
		                    'onSelectError': function (file, errorCode, errorMsg) {
		                        alert("失败");
		                        if (errorCode == -110) {
		                            this.queueData.errorMsg = "文件太大，无法上传！";
		                        }
		                    },
		                    'onUploadSuccess': function (file, data, response) {
		                        var attachs = jQuery.parseJSON(data);
		                        var attach = attachs.data[0];

		                        if (attach.id != null)
		                            $(this.button[0]).parents("table:first").find("tbody:first").append("<tr name=\"" + attach.id + "\"><td class='t_l'>" + attach.fileName + "</td><td class='t_r'>" + attach.fileSize + "</td><td class='t_c'>" + attach.uploadDate + "</td><td class='t_c'><a href='${ctx}/api/attach/download/"+attach.id+"'>下载</a></td><td><a href='javascript:void(0);' id="+attach.id+" name='attach_id' onclick='removeFile(this);'>删除</a></td></tr>");
		                    },

		                });
				        
				        $("#addAttachP").click(function(){
			            	$(".f_window").css("display", "none");
			            	$("#dialogAttach").dialog({
			       				resizable: false,
			       				title: '上传附件',
			                       width: 490,
			                       beforeClose: function( event, ui ) {
			                             $(".f_window").css("display", "block");
			                             var _attachIds = $("table#leaderupload tbody tr");
			                     		 $("#addAttachP a").text("上传意见附件("+_attachIds.length+")");  
			                       },
			                       buttons: {
			                       	"保存": function () {
			                       		$(this).dialog("close");
			                       	},
			                       	"取消": function () {
			                       		var _attachIds = $("table#leaderupload tbody tr");
		               	                for (var i = 0; i < _attachIds.length; i++) {
		               	                	removeFile2($(_attachIds[i]));
		               	                }
			                       		$(this).dialog("close");
			                       	}
			                       }
			                    
			       			});
			            });
					}
		        }, 
		        error: function() {
		           	alert("对不起！你的请求出现异常，请联系服务人员！");
				}
			});
			
			getSuggest(processInstanceId);
			
/* 			editor = CKEDITOR.replace( 'editor1' ,{
				toolbarCanCollapse: true,
				toolbarStartupExpanded: false,
				toolbarLocation: 'bottom',
				readOnly: true,
				height: 400
			}); */
			
			if('${summary.status}'=='finish')
				$('#exp').show();
			else
				$('#exp').hide();
		})
		
		//仅获取修志办初审特定领导
		function getLeaderNew(type){
			var summaryId="${summary.id}";
			$.ajax({
				async : false,
			    url : "${ctx}/summary/"+summaryId+"/parent?ticket=1_1&objFilter=nobj,user",
				type : 'get',
				datatype: "json",
				contentType: "application/json",
				success: function(result, status, xhr) {
						if (result.info.success) {
							var selectItem = "<option value=''>请选择</option>";
							$.each(result.data,function(entryIndex,entry){
								if(entry.nobj=='user'){
									selectItem += "<option value='" + entry.node.loginOrganName + "'>" + entry.node.name + "</option>";
								}
							});
							$("#nextUserId").append(selectItem);
						}else{
							getLeader(type);//未分工-调用原有查询方式
						}
		        }, 
		        error: function() {
		           	alert("对不起！你的请求出现异常，请联系服务人员！");
		           	var selectItem = "<option value=''>请选择</option>";
		           	$("#nextUserId").append(selectItem);
				}
			});	
			
		}
		
		function getLeader(type){
			//获取修志办初审领导
			if(type == "2"){
				$.ajax({
					async : false,
				    url : "${ctx}/flow/getUserInfoGroup/CHRON_VIEW",
					type : 'get',
					datatype: "json",
					contentType: "application/json",
					success: function(data, status, xhr) {
						if (status == "success" && data != null) {
							var selectItem = "<option value=''>请选择</option>";
							
							$.each(data,function(entryIndex,entry){
								selectItem += "<option value='" + entry.loginorganname + "'>" + entry.name + "</option>";
							});
							
							$("#nextUserId").append(selectItem);
						}
			        }, 
			        error: function() {
			           	alert("对不起！你的请求出现异常，请联系服务人员！");
			           	var selectItem = "<option value=''>请选择</option>";
			           	$("#nextUserId").append(selectItem);
					}
				});	
			}
			//获取修志办复审领导
			if(type == "3"){
				$.ajax({
					async : false,
				    url : "${ctx}/flow/getUserInfoGroup/CHRON_REVIEW",
					type : 'get',
					datatype: "json",
					contentType: "application/json",
					success: function(data, status, xhr) {
						if (status == "success" && data != null) {
							var selectItem = "<option value=''>请选择</option>";
							
							$.each(data,function(entryIndex,entry){
								selectItem += "<option value='" + entry.loginorganname + "'>" + entry.name + "</option>";
							});
							
							$("#nextUserId").append(selectItem);
						}
			        }, 
			        error: function() {
			           	alert("对不起！你的请求出现异常，请联系服务人员！");
			           	var selectItem = "<option value=''>请选择</option>";
			           	$("#nextUserId").append(selectItem);
					}
				});	
			}
			
		}
		
		function removeFile(paramObj){
			if(confirm("是否删除，删除后无法恢复")){
				var $target = $(paramObj);
				$.ajax({
					url			: 	"${ctx}/api/attach/del/"+$target.attr("id"),
					async: false,
					dataType	: 	"json",
					type		:	'delete',
					error:function(XMLHttpRequest, textStatus, errorThrown){
					},
					success: function( data ) {
						$target.parent().parent().remove();
					}
				});
			}
		}
		
		function removeFile2(paramObj){
			var $target = $(paramObj);
			$.ajax({
				url			: 	"${ctx}/api/attach/del/"+$target.attr("name"),
				async: false,
				dataType	: 	"json",
				type		:	'delete',
				error:function(XMLHttpRequest, textStatus, errorThrown){
				},
				success: function( data ) {
					$target.remove();
				}
			});
		}
		
		function bindAttach(modelName,_id,_attachIds){
			$.ajax({
			        async: false,
			        url : "${ctx}/api/attach/bind",
			        type : 'post',
			        data: "&modelName="+modelName+"&modelId="+_id+"&attachIds="+_attachIds,
			        success: function(data, status, xhr) {
			            
			        },
			       error:function(XMLHttpRequest, textStatus, errorThrown){
			       //alert(XMLHttpRequest+"save失败");
			       }
			});
		}
		
		function showView(){
			$("#bt").height($(document).height());
            $(".f_window").css("margin-top", ($(window).height() - $('.f_window').outerHeight()) / 2 + $(document).scrollTop());
            $(".f_window").css("margin-left", ($(window).width() - $('.f_window').outerWidth()) / 2);
            $(".f_window").css("display", "block");
            $("#bt").css("display", "block");
             
			$('#recordWindow').show();
		}
		
		//获取审核意见
		function getSuggest(processInstanceId){
			$.ajax({
			    async: false,
			    url : "${ctx}/flow/getComments",
			    type : 'post',
				data: "processInstanceId="+processInstanceId,
				success: function(data, status, xhr) {
					if (status == "success" && data != null)
					{
						$.each(data,function(entryIndex,entry) 
					    {
						   var _str="";
						   var newTaskId = entry.taskId;
						   switch(entry.description)
      					   {
	      					 	case "开始":
						   			_str="<div class=\"node\"><b class=\"fl\">发起人意见</b><div class=\"clear\"></div><div class=\"con\">";
								   	_str+="<i>"+entry.deptName+"</i><div><p>"+entry.completeMessage+"</p></div><div class=\"t_r\">"+entry.username+"<span class=\"date_02 mr5\">"+entry.completeTime+"</span></div></div></div>";
									
								   	newTaskId = processInstanceId+"start";
								break;
	      					 	case "返回修改":
		   					   		_str="<div class=\"node\"><b class=\"fl\">发起人意见</b><div class=\"clear\"></div><div class=\"con\">";
									_str+="<i>"+entry.deptName+"</i><div><p>"+entry.completeMessage+"</p></div><div class=\"t_r\">"+entry.username+"<span class=\"date_02 mr5\">"+entry.completeTime+"</span></div></div></div>";
						   		break;
      					   		case "单位/部门领导审核":
	      					   		_str="<div class=\"node\"><b class=\"fl\">部门领导意见</b><div class=\"clear\"></div><div class=\"con\">";
								   	_str+="<i>"+entry.deptName+"领导</i><div><p>"+entry.completeMessage+"</p></div><div class=\"t_r\">"+entry.username+"<span class=\"date_02 mr5\">"+entry.completeTime+"</span></div></div></div>";
      					   		break;
      					   		case "修志办领导初审":
	      					   		_str="<div class=\"node\"><b class=\"fl\">修志办经办人意见</b><div class=\"clear\"></div><div class=\"con\">";
								   	_str+="<i>修志办领导</i><div><p>"+entry.completeMessage+"</p></div><div class=\"t_r\">"+entry.username+"<span class=\"date_02 mr5\">"+entry.completeTime+"</span></div></div></div>";
      					   		break;
	      					   	case "修志办领导复审":
	      					   		_str="<div class=\"node\"><b class=\"fl\">修志办领导复审意见</b><div class=\"clear\"></div><div class=\"con\">";
								   	_str+="<i>修志办领导</i><div><p>"+entry.completeMessage+"</p></div><div class=\"t_r\">"+entry.username+"<span class=\"date_02 mr5\">"+entry.completeTime+"</span></div></div></div>";
	  					   		break;
      					   }
						   
						   var info = "";
						   
						   $.ajax({
							   async: false,
							    url : "${ctx}/api/attach?modelName=summaryFlow&modelId="+newTaskId+"&groupName=chronFlow",
								type : 'get',
								success: function(data, status, xhr) {
	
									if (status == "success" && data != null)
									{	
										if (data.info.success == true&&JSON.stringify(data.data) != "[]") 
										{
											var entry=data.data;
											for ( var item in entry) 
											{
												info+="<tr name=\""+entry[item].id+"\"><td>"+entry[item].fileName+"</td><td>"+entry[item].fileSize+"</td><td>"+FormatDate(entry[item].uploadDate)+"</td><td><a href='${ctx}/api/attach/download/"+entry[item].id+"'>下载</a></td></tr>";
											}
										
										}
									}
								}
							 });
						   
					   	   if(info!=""&&info!=null){
						   	   _str+="<table style=\"width: 100%;\">";
						   	   _str+="<thead>"+
						   		   "<tr style=\"background-color:#f4f4f4;\">"+
										"<td>文件名</td>"+
										"<td width=\"20%\">大小(kb)</td>"+
										"<td width=\"25%\">上传时间</td>"+
										"<td width=\"20%\" colspan=\"2\">操作</td>"+
									"</tr>"+
									"</thead>";
						   	   _str+=info;
						   	   _str+="</table>";
					   	   }
					
						   $("#leaderSuggest tbody tr td:first").append(_str);
						});
					}
				}
			});
		}
		
		function FormatDate(strTime) {
		    var date = new Date(strTime);
		    return date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
		}
    </script>
</head>

<body class="Flow">
	<div id="dialogAttach" title="" style="display: none">
    	<p>
    		<table width="100%" id="leaderupload" style="font: 12px/1.5 'Helvetica Neue', 'Microsoft YaHei', Arial, 'Liberation Sans', FreeSans, sans-serif;">
    			<thead>
					<tr>
						<td colspan="5">
							<input id="myuploadify" class="upload_button" type="button" value="浏览..." />
							<div style="display:none" class="myissue"></div>
							<input type="button" value="上传"  onclick="$('#myuploadify').uploadify('upload','*');">
							<input type="button" value="取消"  onclick="$('#myuploadify').uploadify('cancel','*');">
						</td>
					</tr>
					<tr>
						<td colspan="5">&nbsp</td>
					</tr>
					<tr style="background-color:#f4f4f4;">
						<td class="t_c">文件名</td>
						<td width="20%" class="t_c">大小(kb)</td>
						<td width="25%" class="t_c">上传时间</td>
						<td width="20%" class="t_c" colspan="2">操作</td>
					</tr>
				</thead>
				<tbody id="tbleader"></tbody>
        	</table>
        </p>
    </div>
    
    <div id="bt" class="transparent" style="display: none"></div>
                            
	<div class="f_window w570" id="recordWindow" name="recordWindow" style="display:none;">
	    <h3 class="clearfix mb10"><span class="fl" id="titleChange"></span>
	
	        <div class="fr close"><a class="cancelButton" href="javascript:void(0);">关闭窗口</a></div>
	    </h3>
	    <form id="recordForm">
	        <div class="con">
	        	<input type="hidden" name="type" id="type" value="summary"/>
	        	<input type="hidden" name="dept" id="dept"/>
	        	<input type="hidden" name="createUserId" id="createUserId"/>
			    <input type="hidden" name="createUserName" id="createUserName"/>
	        	<input type="hidden" name="id" id="id" value="${summary.id}"/>
	        	<input type="hidden" name="todoItemId" value="${summary.todoItemId}"/>
               	<input type="hidden" name="processInstanceId" value="${summary.processInstanceId}"/>
               	<input type="hidden" name="processDefinitionId" value="${summary.processDefinitionId}"/>
	            <input type="hidden" name="taskId" id="taskId"/>
	            <input type="hidden" name="flag" id="flag" value="1"/>
	            <input type="hidden" name="step" id="step"/>
	            <input type="hidden" name="contentTitle" id="contentTitle" value="${summary.contentTitle}"/>
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
	            	<tbody>
		                <tr>
		                    <td width="10%"></td>
		                    <td class="td_1"><input style="margin-top: 1.5px;float:left;" checked type="radio" name="choose" id="choose1" value="1"><span style="margin-left: 20px;float:left;" id="choose1Html"></span></td>
		                </tr>
		
		                <tr>
		                    <td width="10%"></td>
		                    <td class="td_1"><input style="margin-top: 1.5px;float:left;" type="radio" name="choose" id="choose2" value="0"><span style="margin-left: 20px;float:left;" id="choose2Html"></span></td>
		                </tr>
		                <tr style="height: 20px;">
		                	<td></td>
		                	<td></td>
		                </tr>
		                <tr id="nextUserMsg">
		                    <td width="10%"></td>
	               		    <td class="td_1">
              		    		<table>
		                    		<tr>
		                    			<td>&nbsp;&nbsp;&nbsp;审核人：</td>
		                    			<td>
		                    				<select id="nextUserId" name="nextUserId" class="input_large">
			                    			</select>
		                    			</td>
		                    		</tr>
		                    	</table>
		                    </td>
		                </tr>
		                <tr>
		                    <td style="padding: 1px"></td>
		                    <td style="padding: 1px" >
		                    	<table style="width:100%">
		                    		<tr>
		                    			<td>审核意见：</td>
		                    			<td>
		                    				<span class="fr mr8" style="display:inline;" id="addAttachP"><a href="javascript:void(0);">上传意见附件(0)</a></span>
	                    				</td>
		                    		</tr>
		                    	</table>
		                   </td>
		                </tr>
		                <tr>
		                    <td></td>
		                    <td width="100%">
		                        <textarea style="width:94%" name="comment" id="comment">同意！</textarea>
		                    </td>
		                </tr>
	                </tbody>
	            </table>
	        </div>
	        <div class="button t_c">
	            <input type="button" id="commitFlow" class="commitFlow" value="提交">
	            &nbsp;
	            <input type="reset" class="cancelButton" value="关闭">
	        </div>
	    </form>
	</div>

    <div class="f_bg">

        <!--Panel_6-->

        <div class="Divab1">

            <!--1st-->

            <div class="panel_6">

                <div class="divT">

                    <div class="mb10 icon icon_1"></div>

                    <div class="more_4"><a title="更多">更多</a></div>

                </div>

                <div class="divH">

                    <div class="divB">

                        <h5 class="clearfix">业务办理</h5>

                        <div class="con">

                            <ul class="button clearfix">

                                <li class="disable"><a class="ywbl">业务办理</a></li>

                                <!-- <li><a class="print">打印</a></li> -->

                                <li><a class="jk" href="${jeesiteAddress}processDefinitionId=${summary.processDefinitionId}&processInstanceId=${summary.processInstanceId}" target="_blank">业务监控</a></li>

                                <!-- <li><a class="tips">小提示</a></li>

                                <li><a class="imp">公文导入</a></li> -->

                                <li id='exp' ><a class="exp"  href="${ctx}/summary/exportSummary?id=${summary.id}&ticket=1_1"  >长编导出</a></li>
                            </ul>

                        </div>

                    </div>

                    <div class="divF"></div>

                </div>

            </div>

            <!--1st End-->

        </div>

        <!--Panel_6 End-->

        <div class="logo_1"></div>

        <div class="gray_bg">

            <div class="gray_bg2">

                <div class="w_bg">

                    <div class="Bottom">

                        <div class="Top">

                            <h1 class="t_c">上海申通地铁集团有限公司<br>
                              	长编管理</h1>

                            <div class="mb10">
                                <form id="form">
                                	<input type="hidden" name="id" value="${summary.id}"/>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_2">
                                        <thead>
                                            <th colspan="4" class="f1">
                                                <h5 class="fl">基本信息</h5>
                                            </th>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td class="lableTd t_r">资料代码</td>
                                                <td width="35%">
                                                    ${summary.code}
                                                </td>
                                                <td class="lableTd t_r">资料内容时间</td>
                                                <td width="35%">
                                                    ${summary.contentTimeStart} ~ ${summary.contentTimeEnd}  
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="lableTd t_r">资料标题</td>
                                                <td colspan="3">
                                                    ${summary.contentTitle}
                                                </td>                                             
                                            </tr>
                                            <tr>
                                                <td class="lableTd t_r">资料整理者</td>
                                                <td>
                                                    ${summary.operateUser}
                                                </td>
                                                <td class="lableTd t_r">资料报送单位</td>
                                                <td>
                                                	${summary.operateDept}
                                                </td>
                                            </tr>         
                                            <tr>
                                                <td class="lableTd t_r">资料整理时间</td>
                                                <td >
                                                    ${summary.operateTime}
                                                </td>
                                                <td class="lableTd t_r">关键字</td>
                                                <td >
                                                    ${summary.keyword}
                                                </td>
                                            </tr> 
		                                  	<tr>
			                          	     	<td class="lableTd t_r">相关附件</td>
			                                    <td colspan="3">
												  	<iframe style="display:inline;" scrolling="auto" height="150" frameborder="0" marginheight="0" marginwidth="0" width="100%" id="attachFrame" name="attachFrame" 
												  	src="${ctx}/jsp/attach/fileUpload.jsp?modelName=summary&modelId=${summary.id}"></iframe>
												</td>
			                          	    </tr>     
		                                  	<tr>
			                          	     	<td class="lableTd t_r">内容</td>
			                                    <td colspan="3" width="75%">
										            <textarea id="editor1" name="content" rows="10" cols="80">
										                ${summary.content}
										            </textarea>
												</td>
			                          	    </tr> 	
			                          	   <c:if test="${summary.ccc!=null}"> 
			                          	    <tr>
			                          	     	<td class="lableTd t_r">编目内容</td>
			                                    <td colspan="3" width="75%">
										            <textarea id="ccc" name="ccc" rows="10" cols="80">
										                ${summary.ccc}
										            </textarea>
												</td>
			                          	    </tr> 	
			                          	    </c:if>			                          	                                            
                                        </tbody>
                                    </table>
                                    
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_2" id="leaderSuggest">
	                                    <thead>
	                                        <th>
	                                            <h5 class="fl">审批信息</h5>
	                                        </th>
	                                    </thead>
	                                    <tbody>
	                                        <tr>
	                                            <td></td>
	                                        </tr>
	                                    </tbody>
                                    </table>
                                </form>
                            </div>
                            <div class="mb10 t_c">
                            	<input type="button" class="btnSubmit" id="verifyBtn"  value="审核" style="margin:0 5px;display:none;"/>
                                <input type="button" id="btndel" value="关 闭" onclick="window.close()"/>
                                &nbsp;
                                <input type="button" onclick="window.open('${ctx}/card/list?summaryId=${summary.id}&op=0')" value="查看卡片" />     
                            </div>
                            <div class="footer"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
